package com.softline.documentsmall.controller;

import com.softline.documentsmall.entity.DictionaryInfoVO;
import com.softline.documentsmall.ret.ReturnVO;
import com.softline.documentsmall.service.DictionaryInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description:
 * @author: liusheng
 * @create: 2020-12-25
 * @ClassName: DictionaryInfoController
 */
@Api(value="字典关联资源管理相关接口",tags={"字典关联资源管理相关接口"})
@RestController
@RequestMapping("/dictionary/info")
@CrossOrigin(allowCredentials = "true",allowedHeaders = "*")
public class DictionaryInfoController {

    @Autowired
    DictionaryInfoService dictionaryInfoService;

    @ApiOperation(value="新增条目主记录", notes = "新增条目主记录")
    @PostMapping(value = "/insert")
    public ReturnVO insert(@RequestBody DictionaryInfoVO dictionaryInfoVO){
        return dictionaryInfoService.insert(dictionaryInfoVO);
    }
}
